FROM frolvlad/alpine-oraclejdk8:slim

MAINTAINER Genezhao "gene.zhao@snowballtech.com"

ENV WORK_PATH /home/app
ENV APP_NAME @project.build.finalName@.@project.packaging@
ENV APP_VERSION @project.version@
ENV JAVA_OPTS="\
-server \
-Xmx550m \
-Xms256m"
ENV TZ=Asia/Shanghai

VOLUME ["/home/app"]

ADD $APP_NAME app.jar

EXPOSE 8046

RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

ENTRYPOINT java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar